﻿#if CORE

#else

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace System.Diagnostics.CodeAnalysis
{
    /// <summary>
    /// Specifies that the output will be non-null if the named parameter is non-null.
    /// </summary>
    //[NullableContext(1), Nullable((byte)0), AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
    public sealed class NotNullIfNotNullAttribute : Attribute
    {
        /// <summary>
        /// 构造函数初始化
        /// </summary>
        /// <param name="parameterName">parameterName</param>
        public NotNullIfNotNullAttribute(string parameterName)
        {
            this.ParameterName = parameterName;
        }

        /// <summary>
        /// 
        /// </summary>
        public string ParameterName { get; private set; }
    }
}
#endif









